package cn.hbnu;

import static java.lang.Math.pow;

public class ShuiXianHuaShu {
    public static void main(String[] args) {
        caculate();
    }
    public static void caculate(){
        int i;
        int a, b, c;
        for (i = 100; i <= 999; i++) {
            a = i / 100;
            b = i / 10 % 10;
            c = i % 10;
            if ((pow(a,3)+ pow(b,3) + pow(c,3)) == i) System.out.println(i);
        }
    }
}

